cmake_minimum_required(VERSION 3.19.8)
PROJECT(idc_energy C)

include_directories(./ ./energy ./utils ./comm ./ubus)

add_subdirectory(./energy)
add_subdirectory(./utils)
add_subdirectory(./ubus)

aux_source_directory(. SRCS)
set(OBJ_LIST cjson uci hiredis pthread ubus ubox idc_ubus energy utils)

add_executable(idc_energy ${SRCS})

target_link_libraries(idc_energy ${OBJ_LIST})
INSTALL(TARGETS idc_energy RUNTIME DESTINATION bin)











